using System;
using PhillyCodeCamp.Services;

namespace PhillyCodeCampSpecs.Helpers
{
    public class StubTaxRateService : ITaxRateService
    {
        private readonly decimal _stateTaxRate;
        private readonly decimal _usTaxRate;
        private readonly decimal _latePenaltyPercent;
        private readonly bool _isLate;

        public StubTaxRateService(
            decimal stateTaxRate, decimal usTaxRate, 
            decimal latePenaltyPercent, bool isLate)
        {
            _stateTaxRate = stateTaxRate;
            _usTaxRate = usTaxRate;
            _latePenaltyPercent = latePenaltyPercent;
            _isLate = isLate;
        }

        public decimal GetStateTaxRate(string usState, decimal income)
        {
            return _stateTaxRate;
        }
        public decimal GetUsTaxRate(decimal income)
        {
            return _usTaxRate;
        }

        public bool IsSubmittingLate(DateTime submissionDate)
        {
            return _isLate;
        }

        public decimal GetLatePaymentPercent()
        {
            return _latePenaltyPercent;
        }

        public decimal GetBailedOutTaxRate ()
        {
            return 1M;
        }
    }
}